package com.example.spring_project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("book")
public class Book {
    @TableId(value = "book_id",type = IdType.ASSIGN_ID)
    private Integer bookId; // 书的ID
    private String bookAuthor; // 书的作者
    private String bookName; // 书的名称
    private Date publishDate; // 书的出版时间
    private int inStock; // 库存量
    private int soldCount; // 已售出数量
    private String bookLoc;//书籍存放位置
}
